package com.itheima.clientAndService01;

import java.io.File;

public class FileClass01 {
    public static void main(String[] args) {
        //method1();
        //method2();
        File file = new File("D:\\itcast\\","a.txt");
        System.out.println(file);
    }

    private static void method2() {
        File file1 = new File("D:\\itcast\\");
        String str = "a.txt";
        File file = new File(file1,str);
        System.out.println(file);
    }

    private static void method1() {
        String str = "D:\\itcast\\a.txt";
        File file = new File(str);
        System.out.println(file);
    }
}
